package com.wanxi.springboot.team.manage.system.controller;


import com.wanxi.springboot.team.manage.system.api.CommonResult;
import com.wanxi.springboot.team.manage.system.model.UserCollect;
import com.wanxi.springboot.team.manage.system.service.UserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
@RestController
@RequestMapping("/userCollect")
public class UserCollectController {

    @Autowired
    UserCollectService userCollectService;

    @PostMapping("/updateUserCollect")
    public CommonResult updateUserCollect(@RequestBody UserCollect userCollect){
        return userCollectService.updateUserCollect(userCollect);
    }

}
